package com.zxy.furns.service;

import com.zxy.furns.entity.Cart;
import com.zxy.furns.entity.Member;
import com.zxy.furns.entity.Order;
import com.zxy.furns.entity.OrderItem;

import java.util.List;

/**
 * ClassName: OrderService
 * Package: com.zxy.furns.service
 *
 * @Author zxy
 * @Create 2025/3/25 23:38
 * @Version 1.0
 * title:
 * Description:
 */
public interface OrderService {
    //因为订单号在表中时varchar 所以对应的String
    //1.订单是根据cart生成的，cart对象在session  通过web层传入saveOrder
    //2.订单是和一个会员用户关联的
    //生成订单号
    String saveOrder(Cart cart, int memberId);

    List<Order> listOrder(int memberId);

    List<OrderItem> listOrderItem(String orderId);
}